/***************************************************************************
 * File name: EPubEncryptedDataImp.h
 * Original author: caizhifei2003@163.com
 * Date: 2013.03.03
 ***************************************************************************/
#ifndef _EPUB_ENCRYPTED_DATA_IMP_H_
#define _EPUB_ENCRYPTED_DATA_IMP_H_

#include "IEPubEncryptedData.h"
#include <string>

class EPubEncryptedDataImp : public IEPubEncryptedData
{
public:

	virtual EPUB_EncryptionMethod GetAlgorithm() const { return m_Algorithm; }
	virtual void SetAlgorithm(EPUB_EncryptionMethod algorithm) { m_Algorithm = algorithm; }

	virtual const char *GetKeyInfo() const { return m_KeyInfo.c_str(); }
	virtual void SetKeyInfo(const char *keyInfo) { m_KeyInfo = keyInfo; }

	virtual const char *GetCipherData() const { return m_CipherData.c_str(); }
	virtual void SetCipherData(const char *cipherData) { m_CipherData = cipherData; }

private:
	EPUB_EncryptionMethod				m_Algorithm;
	std::string							m_KeyInfo;
	std::string							m_CipherData;
};

#endif // _EPUB_ENCRYPTED_DATA_IMP_H_